-
Notifications
You must be signed in to change notification settings - Fork 66
Conversation
@@ -222,6 +222,7 @@ func (cfg *Config) LoadFromGlobal(global *GlobalConfig) error { | |||
cfg.TiDB.Host = global.TiDB.Host | |||
cfg.TiDB.Port = global.TiDB.Port | |||
cfg.TiDB.User = global.TiDB.User | |||
cfg.TiDB.Psw = global.TiDB.Psw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am more familiar with "Pwd" as an abbreviation, but do we need to abbreviate this at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used Psw
to mimic the field name in the config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What did you mean by "mimic the field name in the config"? There is no Psw
field in the configuration file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The field can be named "Psw" for consistency with old code (or all renamed to "Password"), but the CLI argument should be named -tidb-password
not -tidb-psw
.
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pingcap/docs#1711 PR for updating docs |
What problem does this PR solve?
Previously it is not possible to supply the user password by command line, unlike other restore tools like
loader
What is changed and how it works?
Adds
-tidb-password
command line optionCheck List
Tests
Side effects
Related changes
tidb-ansible
repository